import pygame

class Map:
    def __init__(self):
        self.rects = []
        self.rects.append(pygame.Rect(40,40,40,40))
        
    
    #def lineCollidesMap(self):
    
    def pointCollidesMap(self, point):
        for rect in self.rects:
            if rect.collidepoint(point[0], point[1]):
                return True
        return False
    
    def render(self, screen):
        for rect in self.rects:
            pygame.draw.rect(screen,
                             (155,155,155),
                             rect,
                             1)
            
            